package comautomannn.tomcat.practice.springBootWeb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author automannn
 * @time 2021/10/14
 */
@SpringBootApplication
public class SpringBootWebStarter {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SpringBootWebStarter.class);
        ConfigurableApplicationContext applicationContext =  springApplication.run(args);
        System.out.println("application的类型: "+springApplication.getWebApplicationType());
        System.out.println(applicationContext.getBeanDefinitionCount());

    }
}
